import './assets/main.css'

import { createApp } from 'vue'
import axios from "axios";
import App from './App.vue'
import router from './router'
import store from './stores';  

import urls from '../api/api.js'
// 假设您有一个请求封装在 request.js 中，并且您想将其作为全局属性  
import request from '../api/request.js' // 确保 request.js 确实导出了 request  
// 设置axios实例的基础配置  
axios.defaults.baseURL = 'http://127.0.0.1:8888';
axios.defaults.timeout = 10000;



const app = createApp(App);
app.use(store);  
// app.config.globalProperties.$axios = axios; 
// 在应用实例创建后设置全局属性  
app.config.globalProperties.$urls = urls;
app.config.globalProperties.$request = request;

// app.use(createPinia())
app.use(router);


app.mount('#app');


